package com.woniuxy.utils;

import java.math.BigInteger;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;

import org.apache.shiro.crypto.hash.SimpleHash;
import org.apache.shiro.util.ByteSource;

public class MD5 {
	public static String getMD5String(ByteSource salt,String password){
		String algorithmName="MD5";
		int hashIterations=1024;
		Object result=new SimpleHash(algorithmName,password,salt,hashIterations);
		return result.toString();
	}
}
